﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Ascx_JobGridView : System.Web.UI.UserControl
{
    DataTable jobs;

    public DataTable Jobs
    {
        get { return jobs; }
        set
        {
            jobs = value;
            RebindingData();
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack == false)
        {

        }
    }

    private void RebindingData()
    {
        GridView1.DataSource = jobs;
        GridView1.DataBind();
    }
}
